<%@ page language="java" isELIgnored="false" import="java.util.*"
	pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<%@page import="com.testingedu.model.TTrainInfo"%>
<%TTrainInfo tTrainInfo  = (TTrainInfo)request.getAttribute("tTrainInfo");
 StringBuffer sb = new StringBuffer();
  if(tTrainInfo.getKeyword1() != null && tTrainInfo.getKeyword1().trim().length() > 0){
	  sb.append(tTrainInfo.getKeyword1());
  }
  if(tTrainInfo.getKeyword2() != null && tTrainInfo.getKeyword2().trim().length() > 0){
	  sb.append(","+tTrainInfo.getKeyword2());
  }
  if(tTrainInfo.getKeyword3() != null && tTrainInfo.getKeyword3().trim().length() > 0){
	  sb.append(","+tTrainInfo.getKeyword3());
  }%>

<!-- roleAdd.jsp -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title></title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link rel="stylesheet" type="text/css"
			href="${pageContext.request.contextPath}/css/pingTai/pingTai.css">
		<script src="${pageContext.request.contextPath}/js/utils.js"
			type="text/javascript" language="javascript">
</script>
		<SCRIPT type="text/javascript" language="javascript"
			src="${pageContext.request.contextPath}/js/jquery-1.7.2.js"></SCRIPT>
		<script charset="utf-8"
			src="${pageContext.request.contextPath}/editor/kindeditor.js">
</script>
		<script charset="utf-8"
			src="${pageContext.request.contextPath}/editor/lang/zh_CN.js">
</script>
		<script>
var editor;
KindEditor.ready(function(K) {
	editor = K.create('#editor_id');
});
</script>
	</head>
	<body>

		<table width="100%" border="0" align="center" cellpadding="0"
			cellspacing="0">
			<tr>
				<td height="3"></td>
			</tr>
			<tr height="20" valign="baseline">
				<td bgcolor="#353c44">
					<img src="${pageContext.request.contextPath}/images/pingTai/tb.gif"
						width="14" height="14" />
					<span class="STYLE1">信息详细</span>
				</td>
				<td align="right" bgcolor="#353c44">
					<span class="STYLE1"> </span>
				</td>
			</tr>
			<tr>
				<td height="3" colspan="2"></td>
			</tr>
		</table>
		<form action="${pageContext.request.contextPath}/admin/trainInfo/add"
			method="post" id="_form">
			<table width="100%" border="0" cellpadding="0" cellspacing="1"
				bgcolor="#a8c7ce">

				<tr bgcolor="#FFFFFF" class="STYLE19">
					<td align="right" width="15%">
						标题:
					</td>
					<td width="45%">
						<%=tTrainInfo.getTitle() %>
					</td>
					<td align="right" width="5%">
						类型:
					</td>
					<td width="40%">
						<%=tTrainInfo.gettCategory().getName() %>
					</td>
				</tr>
				<tr bgcolor="#FFFFFF" class="STYLE19">
					<td align="right" width="15%">
						作者:
					</td>
					<td width="45%">
						<%=tTrainInfo.gettUser().getName() %>
					</td>
					<td align="right" width="15%">
						添加时间:
					</td>
					<td width="40%">
						<%=tTrainInfo.getAddTime() %>
					</td>
				</tr>
				<tr bgcolor="#FFFFFF" class="STYLE19">
						<td align="right" width="15%">关键字：</td><td><font color="red"><%if(sb.toString().trim().length() == 0){
								out.print("无关键字");
							} else {
								out.print(sb.toString());
							}%></font>
					</td>
						<td align="right" width="15%">级别：</td>
						<td><%if("1".equals(tTrainInfo.getLevel())) {
							out.print("一般重要");
						} else {
							if("2".equals(tTrainInfo.getLevel())) {
								out.print("重要");
							} else {
								if("3".equals(tTrainInfo.getLevel())) {
									out.print("很重要");
								} 
							}
						}
						if("y".equals(tTrainInfo.getTop())) {%>
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color='#FF0000'>已被置顶</font>
						<% } else {
							if("n".equals(tTrainInfo.getTop())) {%>
								&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color='#006600'>未被置顶</font>
						<%} }%>
						
					</td>
				</tr>
				<tr bgcolor="#FFFFFF" class="STYLE19">
					<td align="center" width="100%" colspan="4">
						<table>
							<tr bgcolor="#FFFFFF" class="STYLE19">
								<td width="15%" align="right">
									内容:
								</td>
								<td>
									<%=tTrainInfo.getContent() %>
								</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr bgcolor="#FFFFFF" class="STYLE19">
					<td colspan="4" align="center">
						<input type="button" class="button2" value="返回"
							onclick="javascript:history.go(-1);" />
					</td>
				</tr>
			</table>
		</form>
	</body>
</html>
